/*
 * Copyright (c) 2011 Team A CS2340. All rights reserved.
 */

package edu.gatech.teama.doctorsoffice.client.presenter;

import edu.gatech.teama.doctorsoffice.client.view.TreatmentDialog;
import edu.gatech.teama.doctorsoffice.model.Appointment;

/**
 * The Class AppointmentInfoPresenter. For use with the appointment info panel
 * 
 * @author TEAMA
 * @version 1.0
 */
public class AppointmentInfoPresenter { // $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString

	/** The appointment. */
	private final Appointment appointment;
	
	/**
	 * Instantiates a new appointment info presenter.
	 *
	 * @param appointment the appointment
	 */
	public AppointmentInfoPresenter(Appointment appointment) {
		this.appointment = appointment;
	}
	
	/**
	 * Open treatment record dialog.
	 */
	public void openTreatmentRecordDialog() {
		final TreatmentDialog treatment = new TreatmentDialog(appointment);
		treatment.setModal(true);
		treatment.setVisible(true);
	}
}
